-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Remove unreleased dependency tags when library is shipped #45427
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Remove unreleased dependency tags when library is shipped #45427
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
This PR removes outdated unreleased_
dependency tags once a library ships and enforces consistency checks for unreleased versions.
- Updated Maven POMs to drop
unreleased_
markers in version-update comments. - Removed stale entries from the version client file.
- Enhanced
utils.py
with stricter validation and automatic removal of matching unreleased tags on version increment. - Adjusted
update_versions.py
for proper path handling and replacement of unreleased dependency markers.
Reviewed Changes
Copilot reviewed 8 out of 8 changed files in this pull request and generated no comments.
Show a summary per file
File | Description |
---|---|
sdk/keyvault-v2/azure-security-keyvault-secrets/pom.xml | dropped unreleased_ prefix in x-version-update comment |
sdk/keyvault-v2/azure-security-keyvault-keys/pom.xml | dropped unreleased_ prefix in x-version-update comment |
sdk/keyvault-v2/azure-security-keyvault-certificates/pom.xml | dropped unreleased_ prefix in x-version-update comment |
sdk/keyvault-v2/azure-security-keyvault-administration/pom.xml | dropped unreleased_ prefix in x-version-update comment |
sdk/identity-v2/azure-identity/pom.xml | dropped unreleased_ prefix in x-version-update comment |
eng/versioning/version_client.txt | removed two unreleased_ entries for shipped libraries |
eng/versioning/utils.py | added unreleased version checks and removal logic |
eng/versioning/update_versions.py | improved file path resolution and dependency replacement |
Comments suppressed due to low confidence (3)
eng/versioning/utils.py:193
- [nitpick] Variable
tempName
uses camelCase; rename totemp_name
to follow Python's snake_case naming convention.
tempName = module.name
eng/versioning/update_versions.py:60
- The code uses
os.path
functions butos
is not imported. Addimport os
at the top of this file to avoid NameError.
print('processing: ' + os.path.normpath(target_file))
eng/versioning/utils.py:112
- [nitpick] Use
is not None
instead of!= None
for clearer intent and Pythonic style (e.g.,if self.external_dependency is not None:
).
if self.external_dependency != None:
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Description
Fixes #42114
Changes to
update_versions.py
andutils.py
to better handleunreleased_
dependencies. The following changes were made:unreleased_
dependency exists. Having the same version should only happen when a library has not shipped at least once yet.unreleased_
version matches the dependency version of the library all references of the unreleased version will be removed.All SDK Contribution checklist:
General Guidelines and Best Practices
Testing Guidelines